package com.freecloud.plug.mybatis.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: maomao
 * @Date: 2021-04-11 10:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserAndDepartment extends User implements Serializable {

    /**
     * 默认所属部门
     * 一对一
     */
    private Department defaultDepartment;

    /**
     * 一对多
     * 所属所有部门
     */
    private List<Department> departmentList;
}
